﻿using System.Collections.Generic;
using System.Linq;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.InsuranceProducts;

namespace ZBJF.Warranty.IBLL
{
    public partial interface IInsuranceProductPackageMappingService
    {
        InsuranceProductPackageMapping LoadByID(int id);
        IQueryable<InsuranceProductPackageMapping> LoadByInsuranceProductPackageID(long insuranceProductPackageId);
        bool IsExist(long insuranceProductID, int insuranceProductPackageId, int id = 0);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool Delete(int id);
        IQueryable<InsuranceProductPackageMapping> GetPagingList(InsuranceProductPackageMappingModel model, out int total);
       /// <summary>
        /// 根据保险卡ID和基础产品ID，删除本次添加的基础产品ID以外的
       /// </summary>
       /// <param name="iwrID"></param>
       /// <param name="notDeleteIWRItemIds"></param>
       /// <returns></returns>
        bool DeleteBy(long iwrID, List<long> notDeleteIpmids);
    }
}